Chapter 4 Processor fundamentals

4.1 Central processing unit architecture

Von Neumann Architecture

The Processor

Registers

an extremely fast piece of on-chip memory, usually 32 or 64 bits in size for temporary storage

btw, flags of Status Register: Carry(C), Negative(N), Overflow(V), Zero(Z)

System Buses

Address bus - carries addresses throughout the computer system. Between the CPU and memory the address bus is unidirectional, this prevents addresses being carried back to the CPU, which would be undesirable

Data bus - carry data and instructions between system components

Control bus - send control signals from control unit to ensure access/use of data & address buses by components of system does not lead to conflict

Performance of computer system

Fetch-execute cycle

Register Transfer Notation (RTN) of fetch-excute cycle

// Direct address: load copy into MAR & retrieve data // Indirect address: add address to IR, copy result to MAR

Interupts

e.g.

software: software failure hardware: hardware error, I/O interrupt (printer no ink)

Sequence

4.2 Assembly language

Processor’s Instruction Set

 

addressing

direct (absolute) addressing- the contents of the memory location in the operand are used

indirect addressing - the contents of the contents of the memory location in the operand are used

indexed addressing - the contents of the memory location found by adding the contents of the index register (IR) to the address of the memory location in the operand are used

immediate addressing - the value of the operand only is used

relative addressing - the memory address used is the current memory address added to the operand

Symbolic addressing - only used in assembly language programming. A label is used instead of a value e.g. memory location with address labelled MyStore contained the value 20, LDD MyStore would store 20 in accumulator

4.3 Bit manipulation

Binary shifts

moving the bits stored in a register a given number of places within the register

Bit manipulation used in monitoring and control